I had a roughly similar experience at a ramp check in Newcastle, WY, many long years ago, probably 37 or so. I was racking up the hours for my commercial and had stopped there for fuel late on a Friday afternoon, enroute to Sundance, WY, where my folks lived. I had just paid for the fuel and was walking back to the 172, when I was stopped by a nicely dressed fellow who had just landed in his Bonanza.
"Where are you going?" he asked. At that point, he laughed and said, "Have a nice flight."
"That's a pretty short strip--think you can handle it?"
"Yup, I've been in and out of there a couple dozen times."
"Can I see your license and the airplane's papers?"
"Nope, not unless you are prepared to show me yours."
"I'm from the FAA."
"I really don't care if you're from Mars. I'll show you my license and the airplane's papers if you'll show me yours."
"And if I don't?"
"Then we're wasting time--I need to be on the ground before dark in Sundance."
I don't really know if he was from the FAA, but I have always taken the position that if any purported official wants me to identify myself and my vehicle or airplane, he/she better be prepared to properly identify him/herself first.