To "put words into someone's mouth" is to speak on their behalf or to attribute attitudes or positions to them without their permission. " but presumably it means to deny what someone said without their permission. EDIT: In the context of your original sentence this doesn't make much sense but it just occurred to me that if someone says "you took the words out of my mouth" they mean you just said what they were about to to say.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.