Place it near the end of a scene, after the setup shows someone getting tired, then follow it with a short surprised reaction sound to wake the moment up and close the joke.