Put it at the end of a short setup as the payoff, after the joke has landed, and follow it with Sitcom Laugh Track to keep the room laughing. For a failed joke, place Sad Trombone just before it to set up the contrast.