Measure the length and width of your raised bed in feet. Calculate the amount of border material you'll need, based on these measurements and a height of 12 inches or so. Mark out the area of the bed with loop-top plant stakes at each corner. Run a string through the loops and tie off the ends.
Cultivate the existing soil with a shovel, turning and loosening it, removing old vegetation and weeds as you go. This will allow for deep root development beneath your raised bed.
Build the frame to a height of at least 12 inches by stacking the stone or railroad ties. Use the stakes and twine as a guide to keep edges and lines straight and clean. If you're using railroad ties, make sure they haven't been treated with arsenic or creosote that can leach into the soil and harm plants.
Fill the frame of the raised bed with a mixture of equal parts garden soil, peat, sand and organic compost for a rich mixture that drains well. When you're finished, soil should rise an inch or two above the edge of the bed, to allow for settling. Remove the stakes and strings, moisten your new soil thoroughly and you're ready to plant.