Place it as the punchline after a tense build-up, then follow it with a shocked gasp to reset the scene, or put a goofy yell just before it so the joke builds in two steps.