Place it at the end of a failed-plan scene, after the bad idea has fully landed, so it closes the moment. Follow it with the Sad Violin for a comic fall, or lead in with the Wrong Answer Game Show sound when a guess goes badly wrong first.