If I used Mewtwo's "Barrier" attack last turn and this turn I play Pokemon Ranger, does that clear the effect so I can use "Barrier" again this turn?
No, Barrier does not "place an effect" to prevent its use on the next turn (unlike attacks such as "Volcanic Heat" which says "this Pokemon" cannot attack next turn). Instead, the attack does a Game State check to see if it was used last turn. Since there is no effect to clear, Pokemon Ranger won't allow you to use Barrier two turns in a row.
Source: TPCi Rules Team (2016-11-03), TPCi Rules Team (2016-12-01)

Relevant cards

Note: All applicable cards may not be listed below.
XY11_104
XY11_113
XY12_51