Cheapest solution...go outside and watch your dog.
Well there is that! But I'll add:
A long leash lots of time and "corrections" will work but it's not going to be quick.
A short section of E fencing and training should work but a high drive dog could blast through the E fence with enough motivation.
Or a trainer and an E collar would be the quickest route.
Your problem is distance an E collar gives correction at a distance, but it takes training and time to understand it's proper use!