I've done that. Minus the dog.
Hint: Magnetic key safe. Much cheaper and faster than AAA.
When the dispatcher answered in about 1 second she said in a loud stern voice “WHAT IS YOUR EMERGENCY”. I whined, “I locked my dog in my car”.
I could almost hear her, under her breath whisper “oh sh*t”. All of the emergencies, the bombing, exploding fertilizer factories and assorted robberies and carjacking and here she gets a call from a woman who has locked her dog in her car. I could hear the disappointment in her voice. I was so tickled that I had to laugh! :)
I used to have a magnetic key box I need to get another one.