The cake they received had green letters, a cannabis leaf and a “high” pony with “red eyes” and a puff of smoke blowing from its snout.
The 36-year-old man, who was taken into custody on Saturday, was allegedly inspired by a teenager's now viral video.
Walmart is reportedly investigating the incident involving the San Jose, Calif. resident.
The post was a tongue-in-cheek jab at the culprit who licked a tub of "Tin Roof" Blue Bell ice cream at a Walmart in Houston.
A video of a woman licking Blue Bell ice cream in a Texas Walmart and putting the tub back on the shelf went viral on Twitter.