Place it at the end of a reveal sequence, after the setup line and just before the reaction shot. Follow it with a sitcom laugh track for the audience response, or use a sad trombone beforehand for a failed reveal that turns into the joke.