Thankfully, you clarified that we could use ANY ranked list! Since I've only played 24 golf courses in the US up to this point, my top ten list would be pretty weak!
Therefore, I'll also incorporate Canadian courses that are or have been ranked on the ScoreGolf Top 100 in Canada list.
Using that criteria, the first 'ranked' course I ever played would have been Stanley Thompson's Whirlpool GC in Niagara Falls, Ontario.

It's still a solid, fun test of golf but it wouldn't even be on my top ten in Canada that I've played, let alone my top 10 overall. I imagine others feel the same way, as Whirlpool fell off the ScoreGolf Top 100 list for the first time in 2008.
The first world-class course I played as a youngster was another Thompson gem, St. George's GCC in Toronto. However, I played in a tournament there as a 15 year old and couldn't properly appreciate the architectural genius of that course at that point in my life. 20 years later, I still haven't played it again but I did get the elusive invite to play this fall, only to turn it down because it was a bit too close to my wife's due date with our first child.

I hope to get there next year to see it again!
The first ranked course I played in the U.S. was Cog Hill - Dubsdread in 2000. Boy, were we excited to play a nationally ranked golf course but ended up slightly disappointed in the experience. Overgrown trees crowding fairways and very poor course conditions somewhat marred what was turning out to be a wonderful trip.

We were saved a day later, when we happened upon a relatively new course in Indiana that we had heard nothing about. We walked into the clubhouse and asked if it was a private course, as there was pretty much no one playing. We were told that the course was indeed public so we cancelled our tee time at the other golf course in the area and teed it up here.

Now this might be cheating, since I haven't seen this course on any national rankings but it must be on a best-in-state list. Our day at Warren GC at Notre Dame was one of the finest golf experiences of my life...no one on the course but us and the ranger followed us around that day sharing history on the development of the course and stories about famed Notre Dame alumni. What a day!
That said, the best two golf courses I've had the pleasure of playing came within two months of each other late in 2007. First, on a trip to the West Coast, I had the good fortune of playing the wonderful Riviera CC in Pacific Palisades in addition to staying at the club for a few nights with my wife.

Not a bad view from our room, either!
Then to top it off, I was lucky enough to play Oakmont late in the fall that year in a charity event. What a golf course! A lot of people call it a brute but the photo I took below, probably my favourite golf course photo I've ever taken, just proves to me how beautiful a course it really is!

Breaking it down, here would be my personal top ten lists of ranked courses played both in Canada and in the U.S.
Canada (in alphabetical order)- Bigwin Island (2002)
- Brantford GCC (2008)
- Eagles Nest GC (2008)
- Glen Abbey GC (1991)
- Lookout Point CC (1990)
- Muskoka Bay GC (2006)
- Osprey Valley - Heathlands Course (2003)
- Oviinbyrd (2008)
- St. George's GCC (1988)
- Thornhill GCC (2008)
Honourable Mention: Angus Glen - South Course (2001); Deer Ridge CC (2005); Osprey Valley - Hoot (2003); Rosedale GCC (2003); Taboo (2002)...and yes, I need to desperately get out of Ontario!
United States (in alphabetical order)- Cog Hill - Dubsdread Course (2000)
- Hammock Beach Resort - Ocean Course (2008)
- Oakmont CC (2007)
- PGA Golf Club - Dye Course (2006)
- PGA Golf Club - South Course (2006)
- Poipu Bay GC (2006)
- Princeville - Prince Course (2006)
- Riviera CC (2007)
- Tanglewood Park - Championship Course (2003)
- Warren GC at Notre Dame (2000)
Honourable Mention (not sure if they are ranked): Cascades GC (Michigan - 2000); Hammock Beach Resort - Conservatory Course (2008); Niagara Falls CC (Tillinghast - 2008)