Groucho Marx, King of the Jungle by Ron Goulart.

Groucho and Frank Denby solve a murder on a set of a movie that Frank is doing some script doctoring for. The movie is a Tarzan knockoff and has all the expected characters.

The sixth in a series that starts with Groucho Marx, Master Detective where Groucho and Frank Denby a scriptwriter who was a crime reporter for the newspapers are pitching a radio series with Groucho as a comedic detective and end up having to solve a real murder. I often find Goulart annoying because he gets too odd but he writes a great Groucho. Lots of 1940s Hollywood cameos and locations.