High-resolution spectroscopy of single Pr$^{3+}$ ions on the $^3$H$_4$-$^1$D$_2$ transition