Take some dish soap detergent and put it in a spray bottle, mix it with water. Spray on rims and use a sponge/brush(not to harsh to scratch the rim) to clean them.
Been working great for me even for really caked on stuff, helps if you got a pressure water hose after lol.