"to put your foot in your mouth" means to say something stupid, or with very poor timing. So, in this case, the speaker feels like he said something so dumb, or at such a wrong time that the paramedics will have to take his foot out of his mouth for him.