Place it at the end of a short confrontation scene, after a dun dun dun sting builds the tension and just before a punch sound lands the joke. If the swear word feels too strong for the edit, follow it with a censor beep to keep the punchline clean.