To jokingly get on to someone; to humorously fuss at someone; to mock another person in a friendly manner.
Since he openly complained about feeling bad for being over weight his friends took to wragging on him to exercise.