Play the song or backing track and start by just walking up and down the scale in time with the beat, one note per beat. Then try some experimenting. Instead of continuing straight up and down the scale, start to vary the notes you play, back and forth, exploring around the pattern.