A cookie dough dispenser in the form of a cookie gun includes a barrel having opposite first and second ends for containing cookie dough, a handgrip provided at the first end, an exit formed at the second end for dispensing cookie dough contained in the barrel, and a cookie dough dispensing mechanism. The dispensing mechanism includes a trigger at the handgrip and a piston slidable within and along the axis of the barrel to dispense cookie dough from the barrel through the exit. The barrel includes a metal outer cylinder and an inner plastic cylinder that is transparent or near-transparent, located co-axially within the outer cylinder, in contact with the outer cylinder. The outer cylinder includes a slot covered by an adjacent part of the inner cylinder as a lens, through which the piston is viewable.