Take away whatever is motivating the barking
Give your puppy a chew toy to entertain itself instead of barking
If your dog is looking for attention when it barks, ignore him. When he stops barking reward him