I don't have a PS3 to check this with, but here is how to set up the Mac for the networking side. Assuming you have OSX 10.5 (leopard)
- Open System Preferences (click the Apple logo, then System Preferences)
- Click "Networking"
- Click "Airport"
- Now, click the box next to "Network Name", and select "Create Network"
- Enter a name for the network. Whether you want a password or not is up to you (I would, however, recommend you do).
- If you tick the password option, enter a password and select 40bit WEP or 128 bit WEP (sadly, OSX doesn't appear to support WPA on this kind of connection). Enter the password again in the Verify box.
- Click OK
As for setting up the PS3, someone else will have to answer that.
I would, however, like to echo the above. Using a wireless router for this sort of thing is usually a lot better.