Put it at the end of a rambling exchange, just before the scene changes, then follow it with Enemy Spotted to restart the tension or Nope to close the joke cleanly.