Put it at the end of a failed attempt, after the setup and the visible mistake, then follow it with Hello Darkness My Old Friend if you want the moment to linger, or a short laugh if you want the next scene to start lighter.