A Bundaberg father-of-four tried to trick two teenage girls into helping him find a puppy before masturbating in front of them, a court has heard.