The correct way to use a question mark in that quotation is to place the question mark inside the quotation marks if the quoted material itself is a question. Here’s how it should look:
"Where did you put my baseball hat?"
If the entire sentence, including the quotation, is a question, then the question mark should still remain inside the quotation marks. If you have any other questions about punctuation or writing, feel free to ask!