He simply called the owner up, in the middle of the night and said, "Your dog is barking." And then he hung up.
He only had to repeat the process a couple of times.
Evidently, the guy would let his dog out and then he went back to bed and to sleep before retrieving the dog from the back yard.
An elegant and effective solution...