The best way to train your dog to come when called is to use positive reinforcement techniques. Start by calling your dog's name and rewarding them with a treat when they come to you. Repeat this process several times, gradually increasing the distance between you and your dog. You can also use a long line to ensure your dog comes back to you. Never call your dog to you if you plan to punish them. This will create a negative association and make your dog less likely to come when called in the future.