Measure up from the floor to the point on the rafters where you want the wall to meet. Snap a chalk line onto the rafters at the height you've chosen.
Cut a 4-inch wide piece of cardboard. Trim the end of the cardboard at the end with a pair of scissors so that when it's held against the rafter it extends straight up and down as determined by a level. This will serve as your template for cutting the ends of your vertical studs.
Cut a top and bottom plate for the short wall from 2-by-4 inch lumber with a circular saw. The plates should extend the length of the wall.
Cut vertical studs to fit between the top and bottom plates. Measure each stud to match the height of the wall, less 6 inches. Cut one end at 90 degrees, and the other at an angle, using your template as a guide. Nail the studs to the bottom plate of the frame wall with 10d nails, spacing the studs every 16 inches, starting at one end, and ending at the other end.
Place the top plate onto the vertical studs and nail it in place.
Lift and slide your wall into position against the rafters. Nail it to the floor and rafters with 10d nails.