OPTION 1
Play a provisional ball with the usual stroke-and-distance penalty.
If you hit your tee shot out of bounds you can take a provisional ball from the tee as your third shot.
If you find your original ball in play you can play your original ball otherwise you use your provisional ball.