I've done it using the walking foot and I used the walking foot to gauge the distance.
MY BFF did a baby quilt where she did a random wavy pattern instead of Stitch-in-the-ditch. Turned out great.
Next time I plan to use a wavy ruler with the ruler foot.