A method comprises advancing a surgical instrument toward a target tissue. The surgical instrument includes a marker that is deposited at a location at or near the target tissue. After depositing the marker, the surgical instrument is withdrawn away from the target tissue. After withdrawing the surgical instrument, the location of the deposited marker is used to determine a trajectory of a distal end of the surgical instrument at or near the target tissue.