Place it at the exact moment the on-screen text or speaker names the reference, then follow it with awkward crickets if the joke is meant to flop, or leave it as the final beat before cutting to the next scene.