He says many of his friends didn't even believe him at first, but within hours his selfie went viral.
Many people are now wondering how he could be so cool, calm, and collected moments after being shot.
Martinez posted the selfie to snap chat, seconds after being shot in the shoulder.
He's one of the six victims in the Mesa shooting spree.
He later posted another photo smiling in the hospital.
"In the process of walking to my medics, that is when I took my selfie, the infamous selfie," said Martinez.
Martinez was released from the hospital hours later; he was shot in the shoulder as the gunman came into Bistro 13 demanding car keys.
"I told him no. I saw him pull out some steel and I immediately told everyone to get down and the next thing I know I was hitting the floor too, and I got up and immediately felt warm, and I knew what happened and told everyone to stay back," he said.
Police say the gunman took off with a chef instructor's car. Martinez crossed the street to get help from medics who were attending to three other victims at the Tri-City Inn.
Martinez now explains why he took the selfie on his way to get help.
"My thought process was the danger had left, I got shot, I'm ok, I'm over it. So then I thought why be frustrated about something that happened, when I can be happy about something that is happening," said Martinez.
Martinez said the thing of course he's most happy about, that he is alive.
It could have been tragic for him. "Yeah, it definitely could have, I'm really sore, it missed it by millimeters," he said.
Martinez said doctors call it a miracle hit. If the bullet hit any higher it could have torn an artery. The bullet could have also shattered his shoulder blade.