If you're on a visa, you should download the PDF of your I-94 (they've been all electronic since 2013) from the CBP's website.
Either print and carry the I-94 around with you, or save the PDF of it to your phone (and hope you have battery life if you ever get stopped by these people).
If you're a citizen, my understanding is that you only have to show some form of ID (e.g. a driver's license).