Place it at the end of a setup, after the bold line or failed attempt, so it closes the beat. Follow it with a laugh or a buzzer-style reaction, then move straight to the next scene while the joke is still fresh in the viewer's mind.